<html>
<head><title>Authorization</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css" href="{%$templates%}/admin.css">

{%if $error neq false%}
<link type="text/css" rel="stylesheet" href="{%$library%}/yui/fonts.css">
<link type="text/css" rel="stylesheet" href="{%$library%}/yui/container.css">

<style>
button.default {
	width:70px;
	height:22px;
}
</style>

<script type="text/javascript" src="{%$library%}/yui/yahoo.js"></script>
<script type="text/javascript" src="{%$library%}/yui/event.js" ></script>
<script type="text/javascript" src="{%$library%}/yui/dom.js" ></script>
<script type="text/javascript" src="{%$library%}/yui/dragdrop.js" ></script>
<script type="text/javascript" src="{%$library%}/yui/animation.js" ></script>
<script type="text/javascript" src="{%$library%}/yui/container.js" ></script>

<script>
YAHOO.namespace("d_warn");
function init()
{
	var handleCancel = function() {this.cancel();};
   YAHOO.d_warn.panell = new YAHOO.widget.Dialog("panell", { 
		width:"270px",
		visible:false,
		modal:true,
		fixedcenter:true,
		close:true,
		effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5},
		buttons : [ { text:"Ok", handler:handleCancel, isDefault:true } ]
	} );
   
   YAHOO.d_warn.panell.setHeader("Ошибка авторизации");
	{%if $error eq 100%}
	YAHOO.d_warn.panell.setBody("Введенные вами логин или пароль оказались неверными для даной системы.");
	{%/if%}
	YAHOO.d_warn.panell.setFooter("&nbsp;");	
	YAHOO.d_warn.panell.render(document.body);
	YAHOO.d_warn.panell.show();
}

YAHOO.util.Event.addListener(window, "load", init);

</script>
{%/if%}

</head>
<body>
<div align='center'><br><br><br><br><br>

<table border='0' width='350' cellpadding='0' cellspacing='0'><tr><td>

<form action='{%$SCRIPT_NAME%}' method='POST'>
<table border='0' cellpadding='4' cellspacing='0' width='100%' class='mid'>

<tr>
<td align='right'>Логин:</td>
<td align='left'><input type='text' size='12' name='login' class='form_f' style='width: 120px'></td>
<td align='center' valign='middle' rowspan='3'><img src='{%$templates%}/img/lock.png' width='96px' height='96px'></td>
</tr>

<tr>
<td align='right'>Пароль:</td>
<td align='left'><input type='password' size='12' name='pwd' class='form_f' style='width: 120px'></td>
</tr>

<tr>
<td></td>
<td align='left'><input type='submit' value='&nbsp; Log-in! &nbsp;'></td>
</tr>

<!--
<tr>
<td align="center" colspan="3">
<br>
{%if $meccano.multi_user eq 1%}
<a href="{%$SCRIPT_NAME%}?register=1">Регистрация.</a> &nbsp;
{%/if%}

{%if $meccano.password_reminder eq 1%}
<a href="{%$SCRIPT_NAME%}?remind=1">Забыл пароль.</a>
{%/if%}
</td>
</tr>
-->

</table>
</form>

</td></tr>
<tr><td align='center' class='lmid'>
<hr size='1' width='100%' style='color: #C63B00' noshade>
<a href='http://artinet.com.ua/'>ArtiNet</a> &#169; 2006
Admin: <a href='mailto:{%$sysadminmail%}'>{%$sysadminname%}</a><br>
System Version: <b>{%$version%}</b>
</td></tr>
</table>
</div>
</body>
</html>